{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=DatePicker/WdatePicker.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
<body>
<div class="sub-body" id="search_box">
    <h3 class="title-1" style="display:none;">{$lang.purchase_order_list}</h3>
  <div class="tab_info">
  <div class="tab-title-1"><span>{$lang.purchase_order_list}</span></div>
    <table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
	  	<tr>
	        <th width="4%">{$lang.No}</th>
	        <th width="7%">{$lang.order_sn}</th>
			<th width="7%">{$lang.sourcing_sn}</th>
			<th width="7%">图片</th>
			<th width="7%">{$lang.factory_name}</th>
	        <th width="7%" type="order" field="brand_name" order="ASC">{$lang.brand_name}</th>
	        <th width="7%" type="order" field="buyer_name" order="ASC">{$lang.buyer_name}</th>
	        <th width="7%" type="order" field="merchandiser" order="ASC">{$lang.merchandiser}</th>
	        <th width="7%" type="order" field="o.status" order="ASC">{$lang.ord_status}</th>
	        <th width="7%">{$lang.sourcing_status}</th>
	        <th width="7%">{$lang.if_print}</th>
	      </tr>
		  <!--{foreach from=$sour_list item=sours name=sm}-->
	      <tr>
	        <td>{$smarty.foreach.sm.iteration}</td>
	        <td>{$sours.order_sn|escape}</td>
			<td><a style="color:blue" href="
	         {url app=purchase&act=order_sour&id=$sours.sourcing_id}
	        ">{$sours.sourcing_sn|escape}</a></td>
	        <td><a href="{$sours.front_pic|escape}" target="_blank"><img src="{$sours.front_pic|escape}" width="80" style="border:none;" ></a></td>
	        <td>{$sours.factory_name|escape}</td>
	        <td>{$sours.brand_name|escape}</td>
	        <td>{$sours.buyer_name|escape}</td>
	        <td>{$sours.merchandiser|escape}</td>
	        <td>{$lang.order_status.$sours.status}</td>
	        <td>{$lang.sour_status.$sours.sourcing_status}</td>
	        <td>{$lang.yes_or_no.$sours.if_print}</td>
	      </tr>
		  <!--{/foreach}-->
         </table>

  </div>
  {include file=page.html}
</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</body>
</html>